@charset "UTF-8";

/* CSS Document */
@import "base_variable";
@import "base_tool";

@font-face {
  font-family: 'iconfont';  /* project id 938874 */
  src: url('//at.alicdn.com/t/font_938874_e2omidgcuxm.eot');
  src: url('//at.alicdn.com/t/font_938874_e2omidgcuxm.eot?#iefix') format('embedded-opentype'),
  url('//at.alicdn.com/t/font_938874_e2omidgcuxm.woff') format('woff'),
  url('//at.alicdn.com/t/font_938874_e2omidgcuxm.ttf') format('truetype'),
  url('//at.alicdn.com/t/font_938874_e2omidgcuxm.svg#iconfont') format('svg');
}
.iconfont {
  font-family:"iconfont" !important;
  font-size:16px;
  font-style:normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a{
  text-decoration: none;
}
a:active {
  text-decoration:none;
}
//@import "iconfont";

view,
scroll-view {
  font-family: 'Microsoft Yahei', '微软雅黑', arial;
  box-sizing: border-box;
  margin: 0;
}

page {
  font-size: 28rpx;
  min-height: 100%;
  background-color: #f7f9f8;
}

//***********************************布局************************************/
.clearfix:after {
  content: "";
  display: block;
  clear: both;
}

.clearfix {
  zoom: 1;
}

.ph-position-relative {
  position: relative;
}

.ph-position-absolute {
  position: absolute;
}

.ph-fl {
  float: left;
}

.ph-fr {
  float: right;
}

.ph-inline-block {
  display: inline-block;
}

.ph-block {
  display: block;
}

.ph-hide {
  display: none;
}

.ph-visiHide {
  visibility: hidden;
}

.ph-visiShow {
  visibility: inherit;
}

.ph-float-none {
  float: none !important;
}

.ph-horizontal-marginAuto {
  margin-left: auto;
  margin-right: auto;
}

.ph-box-shadow {
  box-shadow: 1px 1px 2px rgba(199, 198, 198, 1);
}

.ph-bg-grey,
.page-grey-bg,
.ph-page-greyBg {
  background: $g_greyColor;
}

.ph-bg-grey-light {
  background: #f8f8f8;
  //background: lighten($g_greyColor,2.5%);
}

.ph-bg-white {
  background: #FFFFFF;
}

.ph-bg-red {
  background-color: $g_redColor;
}

.ph-overflow-y-auto {
  overflow-y: auto;
}

.ph-overflow-x-auto {
  overflow-x: auto;
}


/***********************************盒子margin,padding***********************************/

$margin: (t:top, r:right, b:bottom, l:left);
@each $name,
$attr in $margin {
  @for $i from 0 through 10 {
    .ph-m#{$name}#{$i*5} {
      margin-#{$attr}: $i * 5px !important;
    }
    .ph-p#{$name}#{$i*5} {
      padding-#{$attr}: $i * 5px !important;
    }
  }
  @for $i from 1 through 4 {
    .ph-m#{$name}#{$i} {
      margin-#{$attr}: $i * 1px !important;
    }
    .ph-p#{$name}#{$i} {
      padding-#{$attr}: $i * 1px !important;
    }
  }
  @for $i from 0 through 20 {
    .ph-m#{$name}#{$i*5}rpx {
      margin-#{$attr}: $i * 5rpx !important;
    }
    .ph-p#{$name}#{$i*5} {
      padding-#{$attr}: $i * 5rpx !important;
    }
  }
  @for $i from 1 through 4 {
    .ph-m#{$name}#{$i}rpx {
      margin-#{$attr}: $i * 1rpx !important;
    }
    .ph-p#{$name}#{$i} {
      padding-#{$attr}: $i * 1rpx !important;
    }
  }
}

//边框
.ph-border-grey {
  border: 1px solid $g_greyColor;
}

.ph-border-grey-ccc {
  border: 1px solid #CCCCCC;
}

.ph-border-grey-eee {
  border: 1px solid #EEEEEE;
}

.ph-border-grey-ddd {
  border: 1px solid #DDDDDD;
}

.ph-border-brown {
  border: 1px solid $g_brownColor;
}

.ph-w100h100 {
  width: 100%;
  height: 100%;
}

.ph-widthAuto {
  width: auto !important;
}

.ph-minWidthAuto {
  min-width: auto !important;
}

$greyDirect: top,
right,
bottom,
left;
@each $direct in $greyDirect {
  .ph-border-#{$direct}-grey {
    border-#{$direct}: 1px solid $g_greyColor;
  }
}


/***********************************字体、颜色***********************************/

$textColor: (333:#333, 666:#666, 999:#999, aaa:#aaa, bbb:#bbb, ccc:#ccc, red:$g_redColor,fff:#fff, blue:$g_blueColor);
@for $i from 10 through 24 {
  .ph-font#{$i} {
    font-size: $i/10 + rem !important;
  }
}

@for $i from 10 through 80 {
  .ph-font#{$i}rpx {
    font-size: $i + rpx !important;
  }
}

@each $name,
$attr in $textColor {
  .ph-color-#{$name} {
    color: #{$attr} !important;
  }
}

@for $i from 1 through 24 {
  .ph-u24-sm-#{$i} {
    width: $i /24 * 100%;
    float: left;
  }
}

@for $i from 1 through 20 {
  .ph-width-percent#{$i*5} {
    width: $i * 5%;
  }
}

.ph-text-small {
  font-size: 0.8em;
}

.ph-text-red {
  color: $g_redColor;
  &:hover {
    color: $g_redColor;
  }
}

.ph-text-white {
  color: #FFFFFF;
}

.ph-text-grey {
  color: $g_greyColor;
}

.ph-text-green {
  color: $g_greenColor;
}

@for $i from 10 through 24 {
  .ph-font#{$i} {
    font-size: $i/10 + rem !important;
  }
}

$textAlign: (left, center, right);
@each $attr in $textAlign {
  .ph-text-#{$attr} {
    text-align:#{$attr};
  }
}
.ph-text-redHover {
  &:hover {
    color: $g_textRed;
  }
}
.ph-text-white {
  color: #FFFFFF;
}

.ph-text-brown {
  color: $g_brownColor;
}

.ph-text-bold {
  font-weight: bold;
}

.ph-fontWeight-normal {
  font-weight: normal !important;
}

//字体属性
.ph-no-select {
  user-select: none;
}

.ph-select {
  height: 35px;
  border: 1px solid #ECE3E3;
}

.ph-break-word {
  word-break: break-word;
}

.ph-a-oper {
  color: #333333;
  &:hover {
    color: $g_redColor;
    text-decoration: underline;
  }
}

.ph-pointer {
  cursor: pointer !important;
  &:hover {
    cursor: pointer !important;
  }
}

.ph-hover-underline {
  &:hover {
    text-decoration: underline;
  }
}

.ph-text-underline {
  text-decoration: underline;
}

.ph-text-error {
  min-height: 22px;
}

.ph-vertical-align-top {
  vertical-align: top;
}

.ph-vertical-align-middle {
  vertical-align: middle;
  display: inline-block;
}

.ph-vertical-align-bottom {
  vertical-align: bottom;
}

.ph-vertical-middle-container {
  >.first-level {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 0;
    margin-top: 0;
    &input {
      margin-top: 0;
    }
  }
}

.ph-p-oneling {
  min-height: 22px;
}
.ph-text-textarea{
  line-height: 1.5;
}


/***********************************表格***********************************/

.am-avg-justify {
  li:first-child {
    text-align: left;
  }
  li:last-child {
    text-align: right;
  }
  li {
    text-align: center;
  }
}


/***********************************按钮***********************************/

.ph-border-radius-0 {
  border-radius: 0 !important;
}
.ph-border-radius-100{
  border-radius: 100rpx !important;
}
.ph-btn {
  display: inline-block;
  border-radius: 0;
  width: 100%;
  color: #fff;
  text-align: center;
  padding: 20rpx 0;
  line-height: 1;
  &.ph-btn-red {
    background: $g_redColor;
  }
  &.ph-btn-grey {
    background: $g_greyColor;
    color: #666;
  }
  &:after{
    display: none;
  }
}
.flex-wrap {
  display: flex;
  justify-content: space-around;
}

.ph-bottom {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: #efefef;
}

.ph-top {
  position: fixed;
  top: 0;
  width: 100%;
  height: 1px;
  background: #efefef;
}

.ph-flex-justify-sb {
  display: flex;
  justify-content: space-between;
}
.ph-flex-align-cen{
  display: flex;
  align-items: center;
}
.ph-flex-align-end{
  display: flex;
  align-items: flex-end;
}
.ph-flex-align-start{
  display: flex;
  align-items: flex-start;
}
.ph-flex1{
  flex: 1;
}
.ph-flex-wrap{
  flex-wrap: wrap;
}

/**********************************页面样式***************************************/
.container{
  padding-left:5%;
  padding-right:5%;
}
//信息栏
.info-list{
  display: flex;
  align-items: center;
  .info-item{
    display: flex;
    position: relative;
    margin-right: 16px;
    &:after{
      content: "/";
      position: absolute;
      //margin-left: 7px;
      right: -11px;
      top: 1px;
    }

    &:last-child{
      &:after{
        content: none;
      }
    }
  }
}

.section-item{
  margin-top: 10px;
  .section-item-title{
    display: flex;
    align-items: center;
    &:after{
      flex: 1;
      height: 1px;
      background-color: $g_borderColor;
      content: "";
      margin-left: 20px;
    }
  }
  .section-item-con{
    margin-top: 20px;
  }
}

.position-list{
  .position-item{
    padding: 10px 0;
    border-bottom: 1px solid $g_borderColor;
  }
  .position-item-title{
    color: #333;
    font-size: 32rpx;
  }
  .position-item-salary{
    color: #fd5064;
    font-size: 28rpx;
  }
  .info-list{
    color: #999;
    font-size: 28rpx;
    .info-item{
      &:after{
        content: "/";
      }
      &:last-child{
        &:after{
          content: none;
        }
      }
    }

  }
  .position-item-date{
    color: #999;
  }
}

//底部点击按钮
.footer-btn-fixed{
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 5%;
  background-color: #fff;
  .footer-btn-wrap{
    display: flex;
    justify-content: space-between;
    .btn-item{
      flex:1;
      margin: 0 5px;
      display: flex;
      justify-content: center;
      font-size: 36rpx;
      padding: 10px 0;
      line-height: 1;
      border-radius: 2px;
      &.btn1{
        border: 1px solid $g_redColor;
        color: $g_redColor;
        background-color: #ffe7eb;
      }
      &.btn2{
        color:#fff;
        background-color: $g_redColor;
      }
      &.btn-disabled{
        color: #ff9ca8;
        border:1px solid #ff9ca8;
        background-color: #fef1f3;
      }
    }
  }
}

/*****************************图标*****************************/
.ph-icon{
  display: flex;
  justify-content: center;
  align-items: center;
  font-style: inherit;
  width: 14px;
  height: 14px;
  margin-right: 5px;
  img{
    max-width: 100%;
    max-height: 100%;
  }
}
/*****************************符号分割*****************************/
.ph-slash{
  display: flex;
  flex-wrap:wrap;
  &>view{
    &:not(:last-child){
      &:after{
        content: '/';
        color: #999;
        margin:  0 5rpx 0 8rpx;
      }
    }
  }
}
.ph-slash-s{
  display: flex;
  flex-wrap:wrap;
  &>view{
    &:not(:last-child){
      &:after{
        content: '|';
        color: #999;
        margin-right: 3px;
      }
    }
  }
}
.loadend{
  display: flex;
  justify-content: center;
}
.ph-button{
  display: inline-block;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  background: #fff;
  border: 1px solid #dcdfe6;
  border-color: #dcdfe6;
  color: #606266;
  text-align: center;
  box-sizing: border-box;
  outline: none;
  margin: 0;
  transition: .1s;
  font-weight: 500;
  padding: 12px 20px;
  font-size: 14px;
  border-radius: 4px;
  &.medium{
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 4px;
  }
  &.small{
    padding: 9px 15px;
    font-size: 12px;
    border-radius: 3px;
  }
  &.mini {
    padding: 7px 15px;
    font-size: 12px;
    border-radius: 3px;
  }
  &.round{
    border-radius: 20px;
  }
  &.disabled{
    color: #c0c4cc;
    cursor: not-allowed;
    background-image: none;
    background-color: #fff;
    border-color: #ebeef5;
  }
  &.danger{
    color: #fff;
    background-color: $g_redColor;
    border-color: $g_redColor;
    &.disabled{
      color: #fff;
      background-color: #fab6b6;
      border-color: #fab6b6;
    }
    &.plain{
      color: $g_redColor;
      background: #fef0f0;
      border-color: #fbc4c4;
      &.disabled{
        color: #f9a7a7;
        background-color: #fef0f0;
        border-color: #fde2e2;
      }
    }
  }
  &.warning{
    color: #fff;
    background-color: $g_yellowColor;
    border-color: $g_yellowColor;
    &.disabled{
      color: #fff;
      background-color: #f3d19e;
      border-color: #f3d19e;
    }
    &.plain{
      color: $g_yellowColor;
      background: #fdf6ec;
      border-color: #f5dab1;
      &.disabled{
        color: #f0c78a;
        background-color: #fdf6ec;
        border-color: #faecd8;
      }
    }
  }
}
